package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-发票类型
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum InvoiceTypeEnum {

    // 发票类型
    NORMAL("1", "enum.invoiceType.name.normal", "normal"),


    PARTICULAR("2", "enum.invoiceType.name.particular", "particular"),


    NATIONAL_TAX("3", "enum.invoiceType.name.national_tax", "nationalTax"),


    LOCAL_TAX("4", "enum.invoiceType.name.local_tax", "localTax"),


    RECEIPT("5", "enum.invoiceType.name.receipt", "receipt"),
    ;

    private String code;
    private String name;
    private String attr;

    InvoiceTypeEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
